import type { User } from "@/types/user";
import { request } from "@/utils/request";

export const login = (user: User) => request<User>("/login", "POST", user);

export const logout = () => request("/logout");
